package com.echat.serviceapigateway.security.service;

import com.echat.serviceapigateway.security.model.authorization.Authorization;
import com.echat.serviceapigateway.security.model.authorization.Resource;

import java.util.List;

/**
 * Created by chenmohan on 2018/08/31
 *
 * @description
 */
public interface AuthorizationService {

    boolean isAuthorized(Long userId, String uri);

    List<Resource> listResourcesByUserId(Long userId);

    String getAuthCodeByUserId(Long userId);

    String updateAuthCodeByUserId(Long userId, String authIds);

    Authorization addAuthorization(Long userId);

}
